package com.example.dto.webchat;

import com.example.validator.group.DefaultGroup;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@JsonIgnoreProperties(ignoreUnknown = true) // 标注 类以忽略未知属性
@Schema(description = "点单参数")
public class CategoriesWebchatQueryDTO {
    @Schema(description =  "eatType", required = true)
    @NotNull(message="必传eatType", groups = DefaultGroup.class)
    private String eatType;
    @Schema(description =  "categoryId", required = false)
    private Long categoryId;
    @NotNull(message="必传storeId", groups = DefaultGroup.class)
    @Schema(description =  "storeId", required = false)
    private Long storeId;
    @NotNull(message="必传tenantId", groups = DefaultGroup.class)
    @Schema(description =  "tenantId", required = false)
    private Long tenantId;
}
